<?php

namespace App\Models;

use App\Filter\ReportWorkFilter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use EloquentFilter\Filterable;

class ReportWork extends Model
{
    use HasFactory,Filterable;

    public $timestamps = false;

    protected $connection = 'bpm';

    protected $table = 'report_work';

    public function modelFilter(): ?string
    {
        return $this->provideFilter(ReportWorkFilter::class);
    }

    public function approver()
    {
        return $this->hasOne(User::class,'id','approver');
    }
}
